﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WPP_Console
{
    /// <summary>
    /// Interaction logic for CredWindow.xaml
    /// </summary>
    public partial class CredWindow : Window
    {
        public CredWindow()
        {
            InitializeComponent();
            txtUsername.Text = ServiceClient.Username;
            txtPassword.Text = ServiceClient.Password;
        }

        private void OK_Click(object sender, RoutedEventArgs e)
        {            
            ServiceClient.Username = txtUsername.Text;
            ServiceClient.Password = txtUsername.Text;
            this.Close();
        }

        private void Cancel_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
